package com.fee1in;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;

public abstract class DataSource {
   protected String driver;
   protected String url;
   protected String username;
   protected String password;

   public DataSource(Properties properties) {
      this.driver = properties.getProperty("driver");
      this.url = properties.getProperty("url");
      this.username = properties.getProperty("username");
      this.password = properties.getProperty("password");
   }

   public abstract Connection getConnection()throws ClassNotFoundException, SQLException;

}
